#pragma once

#include <QtCore/qglobal.h>
#include <qmap.h>
#include <string>
#include <QDir>
#include <QTextStream>


#define CONFIGPATH "/smart-conf"
#define CONFIG_DIR QDir::currentPath();path+="/smart-conf/"
#define CAMERA_CONFIG_FILE "camera.conf"
#define DEFAULT_CAMERA_CONFIG_NETWORK "{\
\"type\":\"network\",\
\"number\" : \"10\",\
\"port\":\"8000\",\
\"username\":\"admin\",\
\"password\" : \"password\",\
\"ip\" : {\
	\"0\":\"192.168.1.64\",\
		\"1\" : \"192.168.1.65\",\
		\"2\" : \"192.168.1.66\",\
		\"3\" : \"192.168.1.67\",\
		\"4\" : \"192.168.1.68\",\
		\"5\" : \"192.168.1.69\",\
		\"6\" : \"192.168.1.70\",\
		\"7\" : \"192.168.1.71\",\
		\"8\" : \"192.168.1.72\",\
		\"9\" : \"192.168.1.73\"\
}\
}"


#define DEFAULT_CAMERA_CONFIG_LOCAL "{\
\"type\":\"local\",\
\"number\" : \"10\",\
\"start_id\" : \"0\",\
\"stop_id\" : \"9\"\
}"


#define GET_CONFIG_FILE_PATH QDir::currentPath();path += CONFIGPATH;path += "/"

#ifndef BUILD_STATIC
# if defined(CLASSROOMCONFIG_LIB)
#  define CLASSROOMCONFIG_EXPORT Q_DECL_EXPORT
# else
#  define CLASSROOMCONFIG_EXPORT Q_DECL_IMPORT
# endif
#else
# define CLASSROOMCONFIG_EXPORT
#endif
